package com.gitee.mazhenggg.mall.account.mybatis.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AccountDOMapper {
    Long getAvailableByUserId(Long userId);
    void reduceAccountByUserId(@Param("userId")Long userId, @Param("amount")Long amount);
}
